<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page
	import="org.springside.modules.security.springsecurity.SpringSecurityUtils"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>重点微博管理</title>
		<%@ include file="/common/meta.jsp"%>
	<link href="${ctx}/css/jehoo.css" rel="stylesheet" type="text/css" />
		<link href="${ctx}/css/colorbox.css" rel="stylesheet" type="text/css" />
		<script src="${ctx}/js/jquery.js" type="text/javascript" ></script>
		<script src="${ctx}/js/jquery.colorbox.js" type="text/javascript" ></script>
		<script src="${ctx}/js/table.js" type="text/javascript"></script>
	<script>
		$(document).ready(function(){
			//Examples of how to assign the ColorBox event to elements			
			//$("#keyword_btn").colorbox({iframe:true, width:"80%", height:"80%",href:"/keyword/keyword!input.action"});	
			$("#keyword_btn").click(function(){ 
				window.location.href="${ctx}/mblogvip/mblogvip!input.action";
				return false;
			});	
		});
	</script>
</head>
<body>
<div id="body" class="cb" align="center">
	<div id="main" align="center">
		<div id="keyword_banner">
			<div id="keyword_buttons">
			    <input type="button" id="keyword_btn" value="添加重点微博"/>
			</div>
		</div>
		
		<div id="message"><s:actionmessage theme="custom" cssClass="success"/></div>
<form id="mainForm" action="${ctx}/mblogvip/mblogvip.action" method="get">
		<input type="hidden" name="page.pageNo" id="pageNo" value="${page.pageNo}"/>
		<input type="hidden" name="page.orderBy" id="orderBy" value="${page.orderBy}"/>
		<input type="hidden" name="page.order" id="order" value="${page.order}"/>
		<div id="keyword_list">
			<div id="list_field">
				<span id="list_number">序号</span>
				<span id="list_keyword">微博主</span>
				<span id="list_keyword_level">关注范围</span>
				<span id="list_operation">操作</span>
			</div>
			
			<s:iterator status="spin" value="page.result">
											
			<div id="list_txt">
				<span id="list_number_txt"><s:property value="#spin.count+((page.pageNo-1)*10)" /></span>
				<span id="list_keyword_txt">${mblogName}</span>
				<span id="list_keyword_level_txt">${actionLevel}</span>
				<span id="list_operation_txt">
					<span><a href="${ctx}/mblogvip/mblogvip!input.action?id=${id}">编辑</a></span><span>|</span><span><a href="${ctx}/mblogvip/mblogvip!delete.action?id=${id}">删除</a></span>
				</span>
			</div>
			</s:iterator>
		</div>
		<div id="keyword_pagebar">
			<span class="page_indicator"><a href="javascript:jumpPage(${page.totalPages})">末页</a></span>
			<s:if test="page.hasNext"><span class="page_indicator"><a href="javascript:jumpPage(${page.nextPage})">下一页</a></span></s:if>
			<span id="page_number">${page.pageNo}</span>
			<s:if test="page.hasPre"><span class="page_indicator"><a href="javascript:jumpPage(${page.prePage})">上一页</a></span></s:if>			
			<span class="page_indicator"><a href="javascript:jumpPage(1)">首页</a></span>
			<span class="page_indicator">${page.pageNo}/${page.totalPages}</span>
			
		</div>
	</form>
	</div>
</div>
</body>
</html>